package org.dromara.commission.domain.bo;

import org.dromara.commission.domain.LzshHandworkCommission;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 手工佣金业务对象 lzsh_handwork_commission
 *
 * @author Lion Li
 * @date 2024-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = LzshHandworkCommission.class, reverseConvertGenerate = false)
public class LzshHandworkCommissionBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 帐期
     */
    @NotBlank(message = "帐期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String accountPeriod;

    /**
     * 渠道视图_经营主体编码
     */
    @NotBlank(message = "渠道视图_经营主体编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String businessCode;

    /**
     * 代理商名称
     */
    @NotBlank(message = "代理商名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String agentName;

    /**
     * 渠道
     */
    @NotBlank(message = "渠道不能为空", groups = { AddGroup.class, EditGroup.class })
    private String channel;

    /**
     * 店中商编码
     */
    @NotBlank(message = "店中商编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shopCode;

    /**
     * 网点名称
     */
    @NotBlank(message = "网点名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String networkName;

    /**
     * 原因
     */
    @NotBlank(message = "原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reason;

    /**
     * 酬金
     */
    @NotNull(message = "酬金不能为空", groups = { AddGroup.class, EditGroup.class })
    private Double reward;


}
